import { Controller, Post } from '@nestjs/common';
import { Public } from 'src/common/decorator/public.decorator';
import { SupabaseService } from './supabase.service';
import { ApiTags } from '@nestjs/swagger';

@ApiTags('supabase')
@Controller('system/supabase')
// @ApiBearerAuth('authorization')
export default class SupabaseController {
  constructor(private readonly supabaseService: SupabaseService) {}

  @Post('/getTestToken')
  @Public()
  async login() {
    return await this.supabaseService.getTestToken();
  }
}
